Repository navigation
Conversation
write_video() updates the OSD in front of vo_queue_frame(), so that the OSD shows the state of the frame it is drawn with. Since 786f37a the playback time is only set after write_video(), which left the time of the frame before in that update.
The track is going to be built from a kept state as well. No functional change.
It is going to be copied in a second place. No functional change.
The flag that told whether the libass track has to be built again becomes the id of the state the track was built from. Will be used in next commit. functional change.
The changes of the OSD text and bar between the two calls are made for the frame with the given pts. The state from before is kept, and osd_render() gives it to the frame before that one until it is called for another frame.
Since the VO draws on its own thread, it draws a frame while the player may have updated the OSD for the next one already. The time on the OSD was up to one frame ahead. Synchronize the OSD rander with given frame that the core currently is going to queue for rendering.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.